home *** CD-ROM | disk | FTP | other *** search
- property tommy, annika, pippi, water, stopL, stopR, pippiV, originFrame
-
- on new me
- repeat with n = 1 to 38
- member(n, 1).scale = 100
- end repeat
- stopL = 133
- stopR = 667
- pippiV = 391
- return me
- end
-
- on recoverTA me
- tommy.recoverX()
- annika.recoverX()
- end
-
- on mouseHX me
- if pippi.playing = 0 then
- if (pippi.locH > stopL) and (pippi.locH < stopR) then
- if pippi.locH < (the mouseH - 50) then
- if pippi.locH < (stopR - pippi.moveAmount) then
- v = 1
- else
- v = 0
- end if
- else
- if pippi.locH > (the mouseH + 50) then
- if pippi.locH > (stopL + pippi.moveAmount) then
- v = -1
- else
- v = 0
- end if
- else
- v = 0
- end if
- end if
- if pippi.member <> member(string(v), 1) then
- pippi.member = member(string(v), 1)
- end if
- end if
- end if
- end
-
- on keyHXright me
- if pippi.playing = 0 then
- if pippi.locH < (stopR - pippi.moveAmount) then
- v = 1
- else
- v = 0
- end if
- if pippi.member <> member(string(v), 1) then
- pippi.member = member(string(v), 1)
- pippi.play()
- end if
- end if
- end
-
- on keyHXleft me
- if pippi.playing = 0 then
- if pippi.locH > (stopL + pippi.moveAmount) then
- v = -1
- else
- v = 0
- end if
- if pippi.member <> member(string(v), 1) then
- pippi.member = member(string(v), 1)
- pippi.play()
- end if
- end if
- end
-
- on keyHitDown me
- if the frameLabel = "main" then
- case the keyCode of
- 49:
- pippi.keyDownX()
- 123:
- me.keyHXleft()
- 124:
- me.keyHXright()
- end case
- end if
- end
-
- on keyHitUp me
- if the frameLabel = "main" then
- case the keyCode of
- 49:
- pippi.keyUpX()
- end case
- end if
- end
-